<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-05-28 10:33:42  */ ?>
<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_header.html" ,"" ,"" ,"" )  ;?>

<script type="text/javascript">
<!-- 
function update(){
	Dyhb.AjaxSubmit('passwordUpd','<?php echo( G::U('public/change_pass') );?>',null,complete);
}

function complete(data,status){
		if (status==1)
		{
		 //window.setTimeout(function (){window.location.href='<?php echo( G::U('public/login') );?>',20000});
		}
	}

-->
</script>

   <!-- 标题  -->
   <div class="title"><?php print G::L( "修改密码", null, null ) ; ?></div>

  <!-- 正文 -->
  <div id="content" class="content">
      <form action="<?php echo( G::U('public/changePass') );?>" method="post" id="passwordUpd">
      <table class="form-table full">
          <tr>
            <th valign="top"><label for="old_password"><?php print G::L( "旧密码：", null, null ) ; ?></label></th>
            <td><input type="text" name="old_password" id="old_password" class="field" size="40"  value=""/>
			<div class="description"><?php print G::L( "用户以前使用的密码", null, null ) ; ?></div>
			<div class="warning"><?php print G::L( "旧密码必须输入准确才能够修改密码", null, null ) ; ?></div>
            </td>
          </tr>
          <tr>
            <th valign="top"><label for="user_password">新密码：</lang></label></th>
            <td><input type="password" name="user_password" id="user_password" class="field" size="40"  value=""/>
			<div class="description"><?php print G::L( "当前需要修改的新密码", null, null ) ; ?></div>
            </td>
          </tr>
          <tr>
            <th valign="top"><label for="new_password">确认新密码：</lang></label></th>
            <td><input type="password" name="new_password" id="new_password" class="field" size="40"  value=""/>
			<div class="description"><?php print G::L( "新密码确认，保证密码正确输入", null, null ) ; ?></div>
            </td>
          </tr>
          <?php if($changepasswordseccode) :?>
		  <tr>
            <th valign="top"><label for="seccode"><?php print G::L( "验证码：", null, null ) ; ?></label></th>
            <td><input type="text"  class="field" name="seccode" size="6"/>
		        <img id="verifyImg" src="<?php echo( G::U('public/verify') );?>" onClick="flesh_verify()" border="0" alt="<?php print G::L( "点击刷新验证码", null, null ) ; ?>" style="cursor:pointer">
				<div class="description"><?php print G::L( "修改密码验证码", null, null ) ; ?></div>
            </td>
          </tr>
		  <?php endif; ?>
          
          </table> 
          <p class="center"><input type="hidden" name="ajax" value="1">   
          <input type="hidden" name="user_id" value="<?php echo( $nUserId ); ?>">   
          <input type="button" onclick="update()"  class="button" value="  <?php print G::L( "修改密码", null, null ) ; ?>  " />
          <input type="button" onClick="history.back()" class="button" value="  <?php print G::L( "取消", null, null ) ; ?>  " />
        </p>
        </form>
   </div>
   <!-- end content -->

<?php $this->includeChildTemplate( "".APP_PATH."/Tpl/Default/public_footer.html" ,"" ,"" ,"" )  ;?>